package cn.songhaiqing.walle.bean;

import java.util.Calendar;

public class NewSleepHis {
    private Calendar date;
    private int end_minute_dif;
    private String[] sleeps;
    private int start_minute_dif;
    private int step;

    public int getStart_minute_dif() {
        return this.start_minute_dif;
    }

    public void setStart_minute_dif(int start_minute_dif2) {
        this.start_minute_dif = start_minute_dif2;
    }

    public int getEnd_minute_dif() {
        return this.end_minute_dif;
    }

    public void setEnd_minute_dif(int end_minute_dif2) {
        this.end_minute_dif = end_minute_dif2;
    }

    public Calendar getDate() {
        return this.date;
    }

    public void setDate(Calendar date2) {
        this.date = date2;
    }

    public String[] getSleeps() {
        return this.sleeps;
    }

    public void setSleeps(String[] sleeps2) {
        this.sleeps = sleeps2;
    }

    public int getStep() {
        return this.step;
    }

    public void setStep(int step2) {
        this.step = step2;
    }

    public String getSleepString() {
        String result = "";
        if (this.sleeps != null) {
            for (int i = 0; i < this.sleeps.length; i++) {
                result = result + this.sleeps[i];
                if (i < this.sleeps.length - 1) {
                    // result = result + DatabaseAdapter.NEW_SLEEP_SPLIT;
                }
            }
        }
        return result;
    }

    public NewSleepHis copy() {
        NewSleepHis hour = new NewSleepHis();
        hour.setEnd_minute_dif(this.end_minute_dif);
        hour.setStart_minute_dif(this.start_minute_dif);
        hour.setDate(this.date);
        hour.setSleeps(this.sleeps);
        hour.setStep(this.step);
        return hour;
    }
}
